package headListDesignPatterns.duckDemo;

import headListDesignPatterns.duckDemo.behavior.FlyBehavior;
import headListDesignPatterns.duckDemo.behavior.QuackBehavior;
import headListDesignPatterns.duckDemo.behavior.behaviorImpl.FlyNoWay;
import headListDesignPatterns.duckDemo.behavior.behaviorImpl.Quack;

public class ModelDuck extends Duck{

    public ModelDuck() {
        setFlyBehavior(new FlyNoWay());
        setQuackBehavior(new Quack());
    }

    @Override
    public void display() {
        System.out.println("i am a model duck");
    }
}
